Errors resulting from DeleteFile are reported in the global variable "the result." Stack developers will not generally need to worry about this as the most common errors (file in use, file locked, disk locked) are handled by DeleteFile, which presents the user with an alert explaining what happened. If no file was selected or if the user decided not to delete the selected file, this information is also returned in "the result." These are the error messages which DeleteFile can return: